<?php
/* --------------------------------------------------------------
   gm_sitemap_conf.php 2008-06-25 gambio
   Gambio OHG
   http://www.gambio.de
   Copyright (c) 2008 Gambio OHG
   Released under the GNU General Public License (Version 2)
   [http://www.gnu.org/licenses/gpl-2.0.html]
   --------------------------------------------------------------
*/
	defined('_VALID_XTC') or die('Direct Access to this location is not allowed.');
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
	<tr>
		<td valign="top" align="left" class="main">
			<b><?php echo MENU_TITLE_GM_SITEMAP_CONF; ?></b> 
		</td>
	</tr>
</table>
<br />
<form method="post" action="<?php echo xtc_href_link('gm_sitemap.php', 'action=' . 'gm_sitemap_conf&update=1'); ?>">
	<table border="0" width="100%" cellspacing="0" cellpadding="2" id="gm_table">
		<tr>
			<td valign="top" align="left" class="main" width="200">
				<?php echo GM_SITEMAP_CHANGEFREQ; ?>
			</td>
			<td valign="top" align="left" class="main">
				<select name="GM_SITEMAP_GOOGLE_CHANGEFREQ" style="width:150px">
					<option selected value="<?php echo $gm_conf['GM_SITEMAP_GOOGLE_CHANGEFREQ']; ?>"><?php echo constant('TITLE_' . strtoupper($gm_conf['GM_SITEMAP_GOOGLE_CHANGEFREQ'])); ?></option>
					<option value="always"><?php echo TITLE_ALWAYS; ?></option>
					<option value="hourly"><?php echo TITLE_HOURLY; ?></option>
					<option value="daily"><?php echo TITLE_DAILY; ?></option>
					<option value="weekly"><?php echo TITLE_WEEKLY; ?></option>
					<option value="monthly"><?php echo TITLE_MONTHLY; ?></option>
					<option value="yearly"><?php echo TITLE_YEARLY; ?></option>
					<option value="never"><?php echo TITLE_NEVER; ?></option>
				</select>
			</td>
		</tr>
		<tr>
			<td valign="top" align="left" class="main">				
				<?php echo GM_SITEMAP_PRIORITY; ?>
			</td>
			<td valign="top" align="left" class="main">				
			<select name="GM_SITEMAP_GOOGLE_PRIORITY" style="width:150px">
					<option selected value="<?php echo $gm_conf['GM_SITEMAP_GOOGLE_PRIORITY']; ?>"><?php echo $gm_conf['GM_SITEMAP_GOOGLE_PRIORITY']; ?></option>
					<option value="0.0">0.0</option>
					<option value="0.1">0.1</option>
					<option value="0.2">0.2</option>
					<option value="0.3">0.3</option>
					<option value="0.4">0.4</option>
					<option value="0.5">0.5</option>
					<option value="0.6">0.6</option>
					<option value="0.7">0.7</option>
					<option value="0.8">0.8</option>
					<option value="0.9">0.9</option>
					<option value="1.0">1.0</option>
				</select>
			</td>
		</tr>
		<tr>
			<td valign="top" align="left" class="main">				
				<?php echo GM_META_LANG; ?>
			</td>
			<td valign="top" align="left" class="main">
				<?php $gm_languages = gm_get_language(); ?>
				<select name="GM_SITEMAP_GOOGLE_LANGUAGE_ID" style="width:150px">
					<?php													
						for($i = 0; $i < count($gm_languages); $i++) {
							if($gm_conf['GM_SITEMAP_GOOGLE_LANGUAGE_ID'] ==  $gm_languages[$i]['languages_id']) {
								echo '<option selected value="' . $gm_languages[$i]['languages_id'] . '">' . $gm_languages[$i]['name'] . '</option>';
							} else {
								echo '<option value="' . $gm_languages[$i]['languages_id'] . '">' . $gm_languages[$i]['name'] . '</option>';
							}							
						}
					?>					
				</select>
			</td>
		</tr>
		<tr>
			<td valign="middle" align="left" class="main">				
				&nbsp;
			</td>
			<td valign="middle" align="left" class="main">				
				&nbsp;
			</td>
		</tr>
		<tr>
			<td valign="middle" align="left" class="main">				
				<input class="button" type="submit" value="<?php echo BUTTON_SAVE;?>">																									 
			</td>
			<td valign="middle" align="left" class="main">				
				<span id="gm_status" style="height:20px"></span>																									 
			</td>
		</tr>
	</table>
</form>